package com.ljy.my_study.book.tom.软件架构设计原则.依赖倒置原则;

public class Student {

    private ICourse course;

    public void setCourse(ICourse course) {
        this.course = course;
    }

    public void study(){
        System.out.println(this.course.study());
    }
}
